<template>
  <view class="app-container">
    <view class="deletedmsg-list">
      <div class="deletedmsg-item" v-for="item in 5" :key="item">
        <view class="top">
          <div>
            <h4>未读消息标题</h4>
            <u-switch v-model="value" @change="change"></u-switch>
          </div>
        </view>
        <view class="down">
          <div>
            <text class="title">时间</text>
            <text class="value">2023-05-08 17:23:31</text>
          </div>
          <div>
            <text class="title">剩余余额</text>
            <text class="value">139.15</text>
          </div>
        </view>
      </div>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      value: false
    }
  },
  methods: {
    change() {}
  }
}
</script>

<style lang="scss">
.deletedmsg-list {
  background-color: #fff;
  padding: 12px;
  .deletedmsg-item {
    border: 1px solid #f5f6f7;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    margin-bottom: 14px;
    .top {
      background-color: #f5f6f7;
      padding: 16px 12px 14px;
      > div:first-child {
        display: flex;
        justify-content: space-between;
        h4 {
          font-size: 14px;
          color: #000;
          line-height: 24px;
        }
      }
    }
    .down {
      padding: 0 16px 0 16px;
      > div {
        display: flex;
        justify-content: space-between;
        line-height: 32px;
      }
      .title {
        font-size: 12px;
        color: #656565;
      }
      .value {
        color: #000;
        font-size: 12px;
      }
    }
  }
}
</style>
